#include "TcpEchoServer.hpp"
#include <memory>


void Usage(std::string proc)
{
    std::cout<<"Usage : "<< proc <<"localport"<<std::endl;
}
int main(int argc,char* argv[])
{
    EnableConsoleLogStrategy();

     if(argc!=2)
    {
        Usage(argv[0]);
        exit(0);
    }

    uint16_t serverport=std::stoi(argv[1]);
    
    std::unique_ptr<TcpEchoServer> tsvr=std::make_unique<TcpEchoServer>();

    tsvr->Init();
    tsvr->Start();
    return 0;
}